﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="get_week.aspx.cs" Inherits="SQT.tracnghiem.Ajax.ASP.Staff.get_week" %>

<%@ Import Namespace="DataAccess" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">

<body>
    <%
        int year = int.Parse(Request.QueryString["year"]);
        var get_week = (from p in new TblWeekController().FetchAll() where p.Year == year orderby p.Id descending select p);

        foreach (TblWeek week in get_week)
        {
    %>
        <option value="<%=week.Id %>"><%=week.Week %></option>
    <%
        }
        
    %>
</body>
</html>
